package cn.xiyun.xiyuncc.enums;

import org.omg.PortableInterceptor.USER_EXCEPTION;

/**
 * 异常枚举类定义异常
 */
public enum OperationExceptionEnum {
    /* 系统异常 */
    SYSTEM_EXCEPTION("系统异常错误", "not-accessible-error:12355"),
    /* 用户服务异常 */
    USER_EXCEPTION("服务异常错误", "Service exception error:12165564"),
    /* 参数异常 */
    PARAMETER_EXCEPTION("参数异常错误", "Parameter exception error:1654866");

    String code;
    String message;

    OperationExceptionEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
